[#escape x as (x)!?html]
<!doctype html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8"/>
	<title>${title}_${node.name}_${site.name}${global.customs['poweredby']}</title>
	<meta name="keywords" content="${info.keywords}"/>
	<meta name="description" content="${info.description}"/>
	<link href="_files/global.css" rel="stylesheet"/>
	<link href="_files/pt_list_news.css" rel="stylesheet"/>
	<link href="_files/pt_search.css" rel="stylesheet"/>
	<link href="_files/style.css" rel="stylesheet"/>
	[#include 'inc_js.html'/]
	[#include 'inc_pt_css.html'/]
	<link rel="stylesheet" href="${ctx}/static/vendor/jquery-ui/jquery-ui.css">
	<!--<script src="//code.jquery.com/jquery-1.9.1.js"></script>-->
	<!--<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>-->
	<script type="text/javascript" src="${ctx}/static/js/jquery-1.12.4.js"></script>
	<script type="text/javascript" src="${ctx}/static/vendor/jquery-ui/jquery-ui.js"></script>
	<!--<link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css">-->
	<style>
		.s-result{font-family:"Microsoft YaHei";}
		.s-result li{margin-top:8px;}
		.sr-title{margin:0;}
		.sr-desc{margin-top:3px;font-size:14px;width:90%;}
		.sr-footer{margin-top:3px;}
		em.term{font-style:normal;color:#c00;}
		a.sa{color:#00c;text-decoration:underline;font-size:16px;font-family:"Microsoft YaHei";}
		.sf-param{margin-top:10px;}

		div.common-search {
			display:none;
		}
	</style>

	<script>
		$(function () {
			$('#q').autocomplete({  source: [
				{ label: "Chinese", value: "Chinese" },
				{ label: "English", value: "English" },
				{ label: "Spanish", value: "Spanish" },
				{ label: "Russian", value: "Russian" },
				{ label: "French", value: "French" },
				{ label: "Japanese", value: "Japanese" },
				{ label: "江苏省", value: "江苏省" },
				{ label: "jiangsusheng", value: "江苏省" },
				{ label: "中国人", value: "中国人" },
				{ label: "政务内网", value: "政务内网" },
			] });
		});
	</script>
</head>
<body>
<div class="container">
	[#include 'inc_header.html'/]
	<!--&lt;!&ndash; LOGO开始 &ndash;&gt;-->
	<!--<div class="w center" style="padding:10px 0;">-->
		<!--&lt;!&ndash;logo层&ndash;&gt;-->
		<!--<div class="logo-content left">-->
			<!--<a href="/" class="logo-pic">-->
				<!--<p class="fs28">江苏省电子政务网</p>-->
				<!--<p class="logo-text-py">jiang su sheng dian zi zheng wu wang</p>-->
			<!--</a>-->
		<!--</div>-->

		<!--<div class="clear"></div>-->
	<!--</div>-->

	<div class="body-wrapper clearfix">
		<div class="w center mt10 clearfix">

			<div class="left w news-content bgwhite">
				<div class="search-title">
					<a href="" class="icon-sjjs news-search-title">新闻搜索</a>
				</div>
			<div class="">
				<form action="${ctx}/search" method="get" class="s-form" style="margin:20px 0 0 10px;">
					<div class="oh">
						<input type="text" id="q" name="[#if Param.part! =='title' || Param.part! =='keyword' || Param.part! =='description' || Param.part! =='text']${Param.part}[#else]q[/#if]" value="[#if Param.part! =='title' || Param.part! =='keyword' || Param.part! =='description' || Param.part! =='text']${Param[Param.part]}[#else]${Param.q}[/#if]" class="left search-input" style="width:600px;" autocomplete="on"/>
						<button type="submit" class="left" style="width:86px;height:34px;background:url(_files/img/search.png);border:0;"></button>
					</div>
				<div class="sf-param mt20">
				<span>关键词位置：<select name="part" onchange="if($(this).val()==''){$('#q').attr('name','q');}else{$('#q').attr('name',$(this).val());}">
					<option value="">所有位置</option>
					<option value="title"[#if Param.part! == 'title'] selected="selected"[/#if]>仅标题</option>
					<option value="keyword"[#if Param.part! == 'keyword'] selected="selected"[/#if]>仅关键词</option>
					<option value="description"[#if Param.part! == 'description'] selected="selected"[/#if]>仅描述</option>
					<option value="text"[#if Param.part! == 'text'] selected="selected"[/#if]>仅正文</option>
				</select>
				</span>
				<span class="ml10">栏目：<select name="nodeId">
					[@NodeList isIncludeChildren='true';list]
					<option value="">所有栏目</option>
					[#list list as node]
					[#if node_index != 0 && !node.linked && node.realNode]
					<option value="${node.id}"[#if node.id?string == Param.nodeId!] selected="selected"[/#if]>[#if node.treeLevel gt 1][#list 2..node.treeLevel as i]--[/#list][/#if]${node.name}</option>
					[/#if]
					[/#list]
					[/@NodeList]
				</select>
				</span>
				<span class="ml10">时间：<input type="text" name="beginDate" value="${Param.beginDate}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:80px;"/> 至 <input type="text"  name="endDate" value="${Param.endDate}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:80px;"/></span>
				<span class="ml10">排序：<select name="sort">
					<option value="">按相关度</option>
					<option value="publishDate long desc"[#if Param.sort! == 'publishDate long desc'] selected="selected"[/#if]>按发布时间倒序</option>
					<option value="publishDate long asc"[#if Param.sort! == 'publishDate long asc'] selected="selected"[/#if]>按发布时间升序</option>
				</select>
				</span>
				<span class="ml10">
					<button class="btn btn-default" type="button" onclick="location.href='/download';">导出</button>
				</span>
					</div>
				</form>
			</div>

				[@InfoFulltextPage q=Param.q title=Param.title keyword=Param.keyword description=Param.description text=Param.text nodeId=Param.nodeId beginDate=Param.beginDate endDate=Param.endDate sort=Param.sort pageSize=10;pagedList]
				<div class="w center mt10">
					<div class="c-666" style="height:24px;line-height:24px;background-color:#eee;padding:0 5px;">为您找到相关结果 ${pagedList.totalElements} 篇</div>
					[#if pagedList.totalElements > 0]
					<ul class="list-unstyled s-result">
						[#list pagedList.content as info]
						<li>
							<h3 class="sr-title"><a href="${info.url}" target="_blank" class="sa">[#noescape]${info.highlightTitle}[/#noescape]</a></h3>
							<div class="sr-desc">[#noescape]${info.highlightText}[/#noescape]</div>
							<div class="sr-footer">
								<span style="color:#008000;">${info.publishDate?string('yyyy-MM-dd HH:mm')}</span> &nbsp;
								<span>[#list info.node.hierarchy as n]<a href="${n.url}" class="a-hover" style="color:#555;">${n.name}</a>[#if n_has_next]>[/#if][/#list]</span> &nbsp;
								<span style="color:#888;">点击：${info.bufferViews}</span> &nbsp;
								<span style="color:#888;">评论：${info.bufferComments}</span>
							</div>
						</li>
						[/#list]
					</ul>
					<div class="mt20">
						[#include "page.html"/]
					</div>
					[/#if]
				</div>
				[/@InfoFulltextPage]

				<!--[@InfoFulltextPage q=Param.q title=Param.title keyword=Param.keyword description=Param.description text=Param.text nodeId=Param.nodeId beginDate=Param.beginDate endDate=Param.endDate sort=Param.sort pageSize=10;pagedList]-->
				<!--<ul class="list-unstyled mt10 news-list">-->
					<!--[#list pagedList.content as info]-->
					<!--<li style="padding:15px 0;border-bottom:1px solid #eee;">-->
						<!--[#if info.withImage]-->
						<!--<div class="left" style="padding:3px 10px 3px 0;width:22%;">-->
							<!--<a href="${info.url}" target="_blank"><img src="${info.smallImageUrl}" width="138" height="92"/></a>-->
						<!--</div>-->
						<!--<div class="left" style="width:75%;">-->
							<!--<div>[@A bean=info class='ff-yh fs18 a c-000' target="_blank"/]</div>-->
							<!--&lt;!&ndash;<div class="" style="line-height:1.8;padding:2px 0;color:#818181;">${substring(info.description,100,'...')}</div>&ndash;&gt;-->
							<!--<div class="fs12 news-source-date">-->
								<!--<span class="news-source">${info.source}[#if info.source??]${info.source}[#else]本站[/#if]</span>-->
								<!--&lt;!&ndash;<span class="news-spliter"></span>&ndash;&gt;-->
								<!--<span class="news-date">${info.publishDate?string('yyyy-MM-dd')}</span>-->
							<!--</div>-->
						<!--</div>-->
						<!--[#else]-->
						<!--<div>-->
							<!--<div>[@A bean=info class='ff-yh fs18 a c-000' target="_blank"/]</div>-->
							<!--&lt;!&ndash;<div class="" style="line-height:1.8;padding:2px 0;color:#818181;">${substring(info.description,100,'...')}</div>&ndash;&gt;-->
							<!--<div class="fs12 news-source-date">-->
								<!--<span class="news-source">${info.source}[#if info.source??]${info.source}[#else]本站[/#if]</span>-->
								<!--&lt;!&ndash;<span class="news-spliter"></span>&ndash;&gt;-->
								<!--<span class="news-date">${info.publishDate?string('yyyy-MM-dd')}</span>-->
							<!--</div>-->
						<!--</div>-->
						<!--[/#if]-->
						<!--<div class="clear"></div>-->
					<!--</li>-->
					<!--[/#list]-->
				<!--</ul>-->
				<!--<table class="center mt20"><tr><td>-->
					<!--[#include 'page.html'/]-->
				<!--</td></tr></table>-->
				<!--[/@InfoFulltextPage]-->
			</div>
		</div>
	</div>
	[#include 'pt_footer.html'/]
</div>

</body>
</html>
[/#escape]